	function selectAll(checkboxName) {
		var deleteVideo = document.getElementsByName(checkboxName);
		for(var i=0;i<deleteVideo.length;i++) {
		  if(!deleteVideo[i].disabled){
		    deleteVideo[i].checked=true;
		  }
		}
	}
	function selectReverse(checkboxName) {
		var deleteVideo = document.getElementsByName(checkboxName);			
		for(var i=0;i<deleteVideo.length;i++) {
		if(!deleteVideo[i].disabled){
		    deleteVideo[i].checked=!deleteVideo[i].checked;
		  }		
		}
	}
	function clearAll(checkboxName) {
		var deleteVideo = document.getElementsByName(checkboxName);			
		for(var i=0;i<deleteVideo.length;i++) {
			deleteVideo[i].checked= false;
		}
	}
	function checkAll(checkboxName,bhrf,isdele) {
		var deleteVideo = document.getElementsByName(checkboxName);			
		var deleteVideoArray = new Array();
		var j=0;
    	var videoIds = "";
			
		for(var i=0;i<deleteVideo.length;i++) {
			if(deleteVideo[i].checked) {
				deleteVideoArray[j]=deleteVideo[i].value;
				j++;
			}
		}
		for(var i=0;i<deleteVideoArray.length;i++) {
			if(i!=deleteVideoArray.length-1) {
				videoIds+=deleteVideoArray[i]+",";
			}else {
				videoIds+=deleteVideoArray[i];
				break;
			}
		}
		if(videoIds == null || videoIds == ""){
			$.dialog({
				id:'tishi1',
			    title:'系统提示',width: '250px', height:'100px',
			    max: false,
   				min: false,
			    content: '请选择要操作的项！',
			    cancelVal: '确定',
			    cancel: true /*为true等价于function(){}*/
			});
		}else{
			if(isdele == 1){
				$.dialog({
					id:'tishi2',
					title:'系统提示',width: '250px', height:'100px',
					max: false,
    				min: false,
				    content: '删除后将不能再恢复，您确定删除以上选择吗？',
				    ok: function(){
				        window.location.href=bhrf+videoIds;
				    },
				    cancelVal: '取消',
				    cancel: true /*为true等价于function(){}*/
				});
			}else if(isdele == 2){
				$.dialog({
					id:'tishi3',
					title:'系统提示',width: '250px', height:'100px',
					max: false,
    				min: false,
				    content: '您确定本次操作码？',
				    ok: function(){
				        window.location.href=bhrf+videoIds;
				    },
				    cancelVal: '取消',
				    cancel: true /*为true等价于function(){}*/
				});
			}else{
				window.location.href=bhrf+videoIds;
			}
		}
	}
	function dAll(checkboxName,bhrf,isdele) {
		var deleteVideo = document.getElementsByName(checkboxName);			
		var deleteVideoArray = new Array();
		var j=0;
    	var videoIds = "";
			
		for(var i=0;i<deleteVideo.length;i++) {
			if(deleteVideo[i].checked) {
				deleteVideoArray[j]=deleteVideo[i].value;
				j++;
			}
		}
		for(var i=0;i<deleteVideoArray.length;i++) {
			if(i!=deleteVideoArray.length-1) {
				videoIds+=deleteVideoArray[i]+",";
			}else {
				videoIds+=deleteVideoArray[i];
				break;
			}
		}
		if(videoIds == null || videoIds == ""){
			$.dialog({
				id:'tishi4',
			    title:'系统提示',width: '250px', height:'100px',
			    max: false,
   				min: false,
			    content: '请选择要操作的项！',
			    cancelVal: '确定',
			    cancel: true /*为true等价于function(){}*/
			});
		}else{
			if(isdele == 1){
				$.dialog({
					id:'tishi5',
					title:'系统提示',width: '250px', height:'100px',
					max: false,
    				min: false,
				    content: '删除后将不能再恢复，您确定删除以上选择吗？',
				    ok: function(){
				        window.location.href=bhrf+videoIds;
				    },
				    cancelVal: '取消',
				    cancel: true /*为true等价于function(){}*/
				});
			}else if(isdele == 2){
				$.dialog({
					id:'tishi6',
					title:'系统提示',width: '250px', height:'100px',
					max: false,
    				min: false,
				    content: '您确定本次操作吗？',
				    ok: function(){
				        window.location.href=bhrf+videoIds;
				    },
				    cancelVal: '取消',
				    cancel: true /*为true等价于function(){}*/
				});
			}else{
				window.location.href=bhrf+videoIds;
			}
		}
	}
	
	function Show(divid) {
		document.getElementById(divid).style.visibility = "visible"; 
	}
	function Hide(divid) {
		document.getElementById(divid).style.visibility = "hidden";
	} 
	function fnPwd(divid){
		var pwd=document.getElementById(divid).value;
		if(pwd != null && pwd=='101300'){
			return true;
		}
		alert("密码输入错误！");
		return false;
	}
	